package jia.game;

import java.awt.*;

//====================================================

/**
 * Defines a skinnable component.
 *
 * @author Alec Lanter
 */
public interface Skinnable {
    //====================================================
    /**
     * Defines the resource (must be on the classpath) name of the image
     * to use for skinning.  Needs to be PNG (preferred), GIF or jpeg
     * format.
     *
     * @param resourceName
     */
    public void setSkinImage(String resourceName);
    
    
    //====================================================
    /**
     * If the skin image is just a border, call this method to tell the component
     * how much it should inset its rendering to accomodate the border.
     *
     * @param insets
     */
    public void setSkinBorderInset(Insets insets);
    
    //====================================================
    /**
     * Tells the component if the skin image should be tiled to fill the whole
     * background.  Implementations should default to false for consistency.
     *
     * @param tileable
     */
    public void setSkinTileable(boolean tileable);
    
    
}
